import request from '@/utils/request'

// 查询帖子列表
export function listPost(query) {
  return request({
    url: '/api/post/list',
    method: 'get',
    params: query
  })
}

// 删除帖子
export function delPost(postId) {
  return request({
    url: '/api/post/' + postId,
    method: 'delete'
  })
}
